<%@ page pageEncoding="UTF-8"%>

<html>
  <head>
<style>
.errorMessage {color:red;}
.errorLabel {font-weight:bold}
</style>  
    <title>Struts2QuickValidation后台验证测试页面 - 普通表单(纯HTML)</title>
  </head>
  <body>
<h2>Struts2QuickValidation后台验证测试页面 - 普通表单(纯HTML)</h2>
<span class="errorMessage">${validationErrors}</span>

<form action="form.action" method=post enctype="multipart/form-data">
   用户名(user.name): <input name=user.name value="${param['user.name']}"><span class="errorMessage">${errors['user.name'][0]}</span> <br>
   年龄(age): <input name=age value=${param.age}><span class="errorMessage">${errors.age[0]}</span><br>
   密码: <input name=password><span class="errorMessage">${errors.password[0]}</span><br>
   密码重复: <input name=password2><br>
   邮件: <input name=email value=${param.email}><br>
   性别: <input type=checkbox name=gender>男 <input type=checkbox name=gender>女<br>
   IP地址: <input name=ip value=${param.ip}><br>
   数字1: <input name=num1 value=${param.num1}> 数字2(小于数字1): <input name=num2 value=${param.num2}> <br>
   生日:<input name=date value=${param.date}><br>
   浮点数字范围(1~10):<input name=float value=${param["float"]}><br>
   住址: <input name=address value=${param.address}><br>
   邮编: <input name=zip value=${param.zip}><br>
   身份证: <input name=id_num value=${param.id_num}><br>
   <input type=submit value="提交">
</form>
   
  </body>
</html>